package com.hr.vo;

/**
 * 当作返回结果
 * @author xiaoyu
 *
 */
public class ResultSet {
	
	/**
	 * 返回代码  
	 */
    private int status;

    /**
     * 信息
     */
    private String message;

    /**
     * 记录总条数，分页用的
     */
    private Integer total;

    /**
     * 对象 里面存放 数据
     */
    private Object datas;

	public ResultSet() {
	}

	public ResultSet(int status, String message) {
		this.status = status;
		this.message = message;
	}
	
	public ResultSet(int status, Object datas, String message) {
		this.status = status;
		this.datas = datas;
		this.message = message;
	}

	public ResultSet(int status, String message, Integer total, Object datas) {
		this.status = status;
		this.message = message;
		this.total = total;
		this.datas = datas;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Object getDatas() {
		return datas;
	}

	public void setDatas(Object datas) {
		this.datas = datas;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
